﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using LayuiMvc.Models.System;

namespace LayuiMvc.Controllers
{
    [Route("[controller]")]
    public class SystemController : Controller
    {
        [HttpGet("get_init_info")]
        public JsonResult GetInitInfo()
        {
            var initInfo = ToolHelper.JsonFileToModel<InitInfoDto>("Data/init.json");
            return Json(initInfo);
        }
    }
}